import java.io.BufferedReader;
import java.io.InputStreamReader;

import Client.Client;



public class clienttest {

	public static void main(String[] args) 
	{
		Client cl = new Client();
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		cl.SetFilter();
		

		try {
			cl.Connect();
			while(true)
			{
				String str = buf.readLine();
				cl.SendString(str);
				if(str=="quit")
				{
					break;
				}
			}
			cl.Disconnect();
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	
		

		}
		
		
		
	}

